package item.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import item.bean.Staff;
import item.dao.StaffDao;
import item.service.IStaffService;
import item.util.Page;
@Service
public class StaffService implements IStaffService{
	@Autowired StaffDao aa;
	
	public List<Staff> getStaff(Staff staff, Page page) {
		return aa.getStaff(staff,page);
	}
	public int getCount(Staff staff) {
		return aa.getCount(staff);
	}
	public int addStaffMes(Staff staff) {
		return aa.addStaffMes(staff);
	}
	public int delStaff(int id) {
		return aa.delStaff(id);
	}
	public int editStaff(Staff staff) {
		return aa.editStaff(staff);
	}
	public int deleteStaff(int id) {
		return aa.deleteStaff(id);
	}
	public Staff getStaffById(int id) {
		return aa.getStaffById(id);
	}
	public int editStaffImgByID(Staff staff) {
		return aa.editStaffImgByID(staff);
	}
}
